package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author zhangyu
 * @date 2019/2/14
 */
public class ClassificationTypeBean implements Parcelable {
    private int operationState;//0 不能操作 1 可以操作
    private ArrayList<ClassificationBean> vehicleSeriesList;
    public ArrayList<ClassificationBean> getVehicleSeriesList() {
        return vehicleSeriesList;
    }

    public int getOperationState() {
        return operationState;
    }

    public void setOperationState(int operationState) {
        this.operationState = operationState;
    }

    public void setVehicleSeriesList(ArrayList<ClassificationBean> vehicleSeriesList) {
        this.vehicleSeriesList = vehicleSeriesList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.operationState);
        dest.writeList(this.vehicleSeriesList);
    }

    public ClassificationTypeBean() {
    }

    protected ClassificationTypeBean(Parcel in) {
        this.operationState = in.readInt();
        this.vehicleSeriesList = new ArrayList<ClassificationBean>();
        in.readList(this.vehicleSeriesList, ClassificationBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<ClassificationTypeBean> CREATOR = new Parcelable.Creator<ClassificationTypeBean>() {
        @Override
        public ClassificationTypeBean createFromParcel(Parcel source) {
            return new ClassificationTypeBean(source);
        }

        @Override
        public ClassificationTypeBean[] newArray(int size) {
            return new ClassificationTypeBean[size];
        }
    };
}
